package com.example.gamestore.Bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Logs {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String moudle;
    private String operation;
    private String classname;
    private String methodname;
    private String parms;
    private String ip;
    private Long time;
    private Date now;

    public String Timechange(){
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy年-MM月-dd日 HH时:mm分:ss秒");
        String format = sdf1.format(this.now);
        return format;
    }
}
